package com.knife.scheduler.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 调度任务配置
 *
 * @author： 76875
 * @date： 2022/4/2 星期六 10:36
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@ConfigurationProperties(prefix = "knife.scheduler")
public class KnifeSchedulerProperties {

    private Boolean executorFlag;
    private Integer retry = 60;
    private Integer retryTime = 5;
    private Integer stopRetryTime = 5;
    private Integer maxPoolSize = 30;
    private Integer corePoolSize = 5;


    public Integer getRetry() {
        return retry;
    }

    public void setRetry(Integer retry) {
        this.retry = retry;
    }

    public Integer getRetryTime() {
        return retryTime;
    }

    public void setRetryTime(Integer retryTime) {
        this.retryTime = retryTime;
    }

    public Integer getStopRetryTime() {
        return stopRetryTime;
    }

    public void setStopRetryTime(Integer stopRetryTime) {
        this.stopRetryTime = stopRetryTime;
    }

    public Integer getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(Integer maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

    public Integer getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(Integer corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public Boolean getExecutorFlag() {
        return executorFlag;
    }

    public void setExecutorFlag(Boolean executorFlag) {
        this.executorFlag = executorFlag;
    }
}
